<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Member_model extends Base_model {
	/**
	 * 数据表名
	 * @var string
	 */
	public $tablename = 'member';
	
	/**
	 * 主键名
	 * @var string
	 */
	protected $primary_key = 'uid';
	
	public function get_members($where=array()){
		$members = $this->select($where);
		if ($members){
			foreach ($members as $key=>$member){
				$members[$key]->avatar = get_avatar($member->uid);
			}
		}
		return $members;
	}

}